using System;
using System.Linq;

namespace jSLCore.Client.Presentation.jBinding.BaseConverters.BaseMultiConverter
{
    public class MaxMultiConverter : IMultiConverter
    {
        public object Convert(object[] values)
        {
            try
            {
                return values.Cast<int>().Max(i => i);
            }
            catch (Exception)
            {

                return null;
            }
            
        }
    }
}